package operation;

import book.*;

//显示图书
public class ShowOperation implements Operation{
    @Override
    public void work(BookShelf bookShelf) {
        //打印所有图书即可
        Book[] books = bookShelf.getBookShelf();
        int size = bookShelf.getSize();
        for(int i = 0; i < size; i++) {
            System.out.println("序号:"+i+books[i]);
        }
    }
}

